home *** CD-ROM | disk | FTP | other *** search
-
- ********************************************************************************
- TERM.X1
- ********************************************************************************
- A Machine Language XMODEM subroutine for use with BASIC terminal and BBS
- programs.
- TERM.X1 (c) (TM) 1985 by Chrisdos. All rights reserved.
- TERM.X1 may be included in your BBS or Terminal program if proper credit
- is given Chrisdos in the program. This subroutine may not be sold or placed
- in a program that is being sold.
- This program may not be uploaded to any other SIG or BBS without the
- express permission of Chrisdos. [76703,717]
- TERM.X1 will be maintained by the Sysop of the Compuserve CB Interest Group SIG
- (CBIG) and the program may be found in the database of that sig.
- --------------------------------------------------------------------------------
-
- Term.x1 is a Machine Language program that may be used as a subroutine
- by a basic program to allow the basic program to do fast XMODEM file
- transfers. The XMODEM file transfer routines are modified versions taken
- from the CBterm/C64 terminal program. Also included in term.x1 is a little
- terminal emulater subroutine that is capable of running at 1200 baud.
- The Xmodem routines can run either at 300 or 1200 baud, but if you impliment
- your terminal emulater in BASIC, BASIC can only keep up at 300 baud.
-
- Term.x1 is ideal for inclusion in a terminal program or BBS system. With
- a simple set up and call to term.x1 you can impliment full XMODEM file
- transfer.
-
- Term.x1 loads into hi memory of the C64 and takes no space from BASIC, it
- loads in the $C000 to $C7FF range. This includes all room for buffersy and
- pointers. The only other memory used is 6 bytes in page 0 memory that are
- the floating point acumulator in basic. There is no conflict since
- BASIC is off while term.x1 is in control.
- (Other load address for term.x1 may be obtained by contacting Chrisdos by
- a message to SYSOP in CBIG.)
-
- Term.x1 contains 3 subroutines: DOWNLOAD, UPLOAD, and TERMINAL. You may use
- any one or all in your program.
-
- Operation
- ---------
- First, you have your BASIC program load term.x1 into memory so it can be
- called via the SYS function when needed.
- Term.x1 expects to be able to find the RS232 opened as logcal device 5
- and the disk as logical device 8.
-
- DOWNLOADING
- -----------
- Before calling term.x1 to download you must have the disk file opened
- in the name you wish to save the incomming data as.
-
- You have the sending computer go into its download mode, and you SYS 49152.
- Term.x1 will then handshake and do a XMODEM download.
- The subroutine may be aborted by pressing the Commodore key C= and CTRL
- together.
- The routine will return with a 0 in location 780 if the download was OK
- or a 255 in location 780 if it failed or aborted.
-
- UPLOADING
- ---------
- To upload, you open the file you wish to send, have the recieveing computer
- start looking for the XMODEM upload and then SYS 49155.
- Term.x1 will then upload the file and return with a 0 in 780 if
- all was ok or 255 if it failed or aborted. The Upload can be aborted
- by pressing C= CTRL.
-
- TERMINAL
- --------
- Because BASIC cannot keep up with 1200 baud speed, a little terminal subroutine
- was added to term.x1. If you SYS49158 you will send out the modem
- ASCII data as typed on the keyboard and display recieved ASCII data.
- (in other words, the subroutine translates petscii/ascii)
- To exit terminal mode press C= CTRL.
-
- --------------------------------------------------------------------------------
- Term.x1 does no disk error checking. This is left to you and your basic
- program. Before doing a upload, you had better make sure the disk file
- you want is propperly opened. The same for a download, you had better have
- room on the disk for the file.
-
- See the sample program BASX1 for a view as to how to use TERM.X1.
-
- Any comments or suggestions may be left in a message to SYSOP in the
- CBIG Sig. No Email please.
- ********************************************************************************
- For background information, see the files on the CBterm/C64 program, as these
- routines are a subset of that program.
- -Chrisdos
-